package com.shop.cloud.domain.hongfu;

import java.sql.Timestamp;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.shop.cloud.common.mybatis.BaseEntity;
import io.swagger.annotations.ApiModelProperty;
import lombok.EqualsAndHashCode;
import lombok.ToString;

/**
 * 
 * distribution_msg-
 *
 */
@ToString
@EqualsAndHashCode(callSuper = true)
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonIgnoreProperties(value = {"hibernateLazyInitializer", "handler", "fieldHandler"}, ignoreUnknown = true)
public class DistributionMsg extends BaseEntity{

	private static final long serialVersionUID = 1L;
    
	/**
	 * 得利类型 0：积分 1：金额
	 */
	@ApiModelProperty(value = "得利类型 0：积分 1：金额")
	 private Integer type;
	/**
	 * 流水号
	 */
	@ApiModelProperty(value = "流水号")
	 private String tradeNo;
	/**
	 * 得利情况 当类型为积分时为获得积分数 当类型为金额时为获取金额数
	 */
	@ApiModelProperty(value = "得利情况 当类型为积分时为获得积分数 当类型为金额时为获取金额数")
	 private Float distriNum;
	/**
	 * 得利者ID
	 */
	@ApiModelProperty(value = "得利者ID")
	 private Long toUser;
	/**
	 * 得利者姓名
	 */
	@ApiModelProperty(value = "得利者姓名")
	 private String toUserName;
	/**
	 * 得利用户级别 1:店长 ,2:业务员,3:普通用户
	 */
	@ApiModelProperty(value = "得利用户级别 1:店长 ,2:业务员,3:普通用户")
	 private Integer toUserLevel;
	/**
	 * 贡献者ID
	 */
	@ApiModelProperty(value = "贡献者ID")
	 private Long fromUser;
	/**
	 * 贡献者姓名
	 */
	@ApiModelProperty(value = "贡献者姓名")
	 private String fromUserName;
	/**
	 * 创建时间
	 */
	@ApiModelProperty(value = "创建时间")	
	 private Timestamp createTime;
	/**
	 * 状态 0：有效 1：无效
	 */
	@ApiModelProperty(value = "状态 0：有效 1：无效")
	 private Integer status;
	/**
	 * 备注
	 */
	@ApiModelProperty(value = "备注")
	 private String remark;
	
	/**
	 * 交易流水
	 */
	private TransactionLog transactionLog;
	
	/**
	 * 用户类型 0：邀请人 1：邀请对象
	 */
	private Integer userType;
	
	/**
	 * 日志类型
	 */
	private Integer logType;
	
	private Long searchUserID;
	
	private String searchUserName;
	
	private String inviteUserImg;
    
    public DistributionMsg(){
    
    }
    
    public Integer getType() {
        return this.type;
    }
    
    public void setType(Integer type) {
        this.type = type;
    }
    public String getTradeNo() {
        return this.tradeNo;
    }
    
    public void setTradeNo(String tradeNo) {
        this.tradeNo = tradeNo;
    }
    public Float getDistriNum() {
        return this.distriNum;
    }
    
    public void setDistriNum(Float distriNum) {
        this.distriNum = distriNum;
    }
    public Long getToUser() {
        return this.toUser;
    }
    
    public void setToUser(Long toUser) {
        this.toUser = toUser;
    }
    public Integer getToUserLevel() {
		return toUserLevel;
	}

	public void setToUserLevel(Integer toUserLevel) {
		this.toUserLevel = toUserLevel;
	}

	public Long getFromUser() {
        return this.fromUser;
    }
    
    public void setFromUser(Long fromUser) {
        this.fromUser = fromUser;
    }
    public Timestamp getCreateTime() {
        return this.createTime;
    }
    
    public void setCreateTime(Timestamp createTime) {
        this.createTime = createTime;
    }
    public Integer getStatus() {
        return this.status;
    }
    
    public void setStatus(Integer status) {
        this.status = status;
    }
    public String getRemark() {
        return this.remark;
    }
    
    public void setRemark(String remark) {
        this.remark = remark;
    }

	public TransactionLog getTransactionLog() {
		return transactionLog;
	}

	public void setTransactionLog(TransactionLog transactionLog) {
		this.transactionLog = transactionLog;
	}

	public String getToUserName() {
		return toUserName;
	}

	public void setToUserName(String toUserName) {
		this.toUserName = toUserName;
	}

	public String getFromUserName() {
		return fromUserName;
	}

	public void setFromUserName(String fromUserName) {
		this.fromUserName = fromUserName;
	}

	public Integer getUserType() {
		return userType;
	}

	public void setUserType(Integer userType) {
		this.userType = userType;
	}

	public Integer getLogType() {
		return logType;
	}

	public void setLogType(Integer logType) {
		this.logType = logType;
	}

	public Long getSearchUserID() {
		return searchUserID;
	}

	public void setSearchUserID(Long searchUserID) {
		this.searchUserID = searchUserID;
	}

	public String getSearchUserName() {
		return searchUserName;
	}

	public void setSearchUserName(String searchUserName) {
		this.searchUserName = searchUserName;
	}

	public String getInviteUserImg() {
		return inviteUserImg;
	}

	public void setInviteUserImg(String inviteUserImg) {
		this.inviteUserImg = inviteUserImg;
	}

}